/**
 * {LICENSE}
 */

#ifndef PROJM_PROJM_NET_H_
#define PROJM_PROJM_NET_H_

#ifdef __cplusplus
extern "C"
{
#endif

	#include <stdint.h>

	
	int projm_listen(char *url);

	int projm_close(int socket);

	int projm_connect(char *url,uint64_t timeout);

	int projm_send(int socket,const void *buf,size_t len,uint64_t timeout);

	int projm_recv(int socket,void *buf,size_t len,uint64_t timeout);

	int projm_errno(void);

	const cha r*projm_strerror(int errno);
	

#ifdef __cplusplus
}
#endif
#endif
